﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace YArchitech.Revit
{
	public class LayerBrushFilter : ISelectionFilter
	{
		public LayerBrushFilter(Element element)
		{
			this.specElem = element;
		}

		public bool AllowElement(Element elem)
		{
			return this.specElem != null && !(elem.Id == this.specElem.Id);
		}

		public bool AllowReference(Reference reference, XYZ position)
		{
			return false;
		}

		private Element specElem;
	}
}
